OpenStack Grizzly - Configure Nova
2013/08/13 |
Install and Configure OpenStack Compute Service (Nova).
|
|
[1] | Install Nova |
# install from EPEL OpenStack, EPEL [root@dlp ~]# yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-nova openstack-swift-plugin-swift3
|
[2] | Configure Nova |
# set database ( set any password you like for "password" section ) [root@dlp ~]# openstack-db --init --service nova --password password Please enter the password for the 'root' MySQL user: # MySQL root password Verified connectivity to MySQL. Creating 'nova' database. Updating 'nova' database password in /etc/nova/nova.conf Initializing the nova database, please wait... Complete!
[root@dlp ~]#
vi /etc/nova/nova.conf # line 19: add and change like follows
auth_strategy = keystone
libvirt_type = kvm volume_api_class = nova.volume.cinder.API enabled_apis = ec2,osapi_compute,metadata # interface for public public_interface = eth0 # interface for using flat_interface = lo # define bridhe interface flat_network_bridge = br100
[keystone_authtoken]
[root@dlp ~]# admin_tenant_name = service admin_user = nova admin_password = servicepassword auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http signing_dir = /tmp/keystone-signing-nova for service in api objectstore compute conductor network scheduler cert consoleauth; do /etc/rc.d/init.d/openstack-nova-$service start chkconfig openstack-nova-$service on done Starting openstack-nova-api: [ OK ] Starting openstack-nova-objectstore: [ OK ] Starting openstack-nova-compute: [ OK ] Starting openstack-nova-conductor: [ OK ] Starting openstack-nova-network: [ OK ] Starting openstack-nova-scheduler: [ OK ] Starting openstack-nova-cert: [ OK ] Starting openstack-nova-consoleauth: [ OK ] # start cert again because it is down at first boot [root@dlp ~]# /etc/rc.d/init.d/openstack-nova-cert start Starting openstack-nova-cert: [ OK ] # confirm status [root@dlp ~]# nova-manage service list Binary Host Zone Status State Updated_At nova-conductor dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 nova-scheduler dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 nova-consoleauth dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 nova-network dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 nova-compute dlp.srv.world nova enabled :-) None nova-cert dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 |